1000
|
It is possible to clip the bar's caption to bar, when the time scale is changed

exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.set_PaneWidth(false,48);
var_Chart.FirstVisibleDate = Convert.ToDateTime("12/27/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBox;
var_Bar.Height = 13;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","This is a bit of text that get's clipped");
var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,4);
var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarToolTip,var_Items.get_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption));
h = var_Items.AddItem("Task 2");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","This is a bit of text that is not clipped");
var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,1);
|
999
|
How can I change the color for all bars with the key matching a pattern

exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,64);
exg2antt1.Debug = true;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B1",null);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/17/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B2",null);
var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
var_Items.AddBar(var_Items.AddItem("Task 4"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B4",null);
var_Items.set_ItemBar(0,"<B*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
|
998
|
How can I change the color for all bars in the same item with the key matching a pattern

exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,64);
exg2antt1.Debug = true;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B1",null);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/17/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B2",null);
var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
var_Items.AddBar(var_Items.AddItem("Task 4"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K4",null);
var_Items.set_ItemBar(h,"<B*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
|
997
|
How can I change the color for all bars in the same item

exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
var_Items.AddBar(var_Items.AddItem("Task 4"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K4",null);
var_Items.set_ItemBar(h,"<*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
|
996
|
How can I write a special number for each date related to a bar

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,32);
var_Chart.LevelCount = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1",null);
exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes;
exontrol.EXG2ANTTLib.Note var_Note = var_Notes.Add("N1",exg2antt1.Items.FirstVisibleItem,"1","");
var_Note.RelativePosition = "S+2";
var_Note.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"4");
var_Note.set_PartFixedWidth(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,18);
var_Note.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,-9);
var_Note.set_PartBackColor(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,Color.FromArgb(255,255,0));
var_Note.ShowLink = exontrol.EXG2ANTTLib.NoteLinkTypeEnum.exNoteLinkHidden;
var_Note.set_PartVisible(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,true);
exontrol.EXG2ANTTLib.Note var_Note1 = var_Notes.Add("N2",exg2antt1.Items.FirstVisibleItem,"1","");
var_Note1.RelativePosition = "S+3";
var_Note1.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"4");
var_Note1.set_PartFixedWidth(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,18);
var_Note1.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,-9);
var_Note1.set_PartBackColor(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,Color.FromArgb(255,255,0));
var_Note1.ShowLink = exontrol.EXG2ANTTLib.NoteLinkTypeEnum.exNoteLinkHidden;
var_Note1.set_PartVisible(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,true);
exontrol.EXG2ANTTLib.Note var_Note2 = var_Notes.Add("N3",exg2antt1.Items.FirstVisibleItem,"1","");
var_Note2.RelativePosition = "S+4";
var_Note2.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"5");
var_Note2.set_PartFixedWidth(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,18);
var_Note2.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,-9);
var_Note2.set_PartBackColor(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,Color.FromArgb(0,255,0));
var_Note2.ShowLink = exontrol.EXG2ANTTLib.NoteLinkTypeEnum.exNoteLinkHidden;
var_Note2.set_PartVisible(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,true);
exontrol.EXG2ANTTLib.Note var_Note3 = var_Notes.Add("N4",exg2antt1.Items.FirstVisibleItem,"1","");
var_Note3.RelativePosition = "S+5";
var_Note3.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"5");
var_Note3.set_PartFixedWidth(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,18);
var_Note3.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,-9);
var_Note3.set_PartBackColor(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,Color.FromArgb(0,255,0));
var_Note3.ShowLink = exontrol.EXG2ANTTLib.NoteLinkTypeEnum.exNoteLinkHidden;
var_Note3.set_PartVisible(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,true);
exontrol.EXG2ANTTLib.Note var_Note4 = var_Notes.Add("N5",exg2antt1.Items.FirstVisibleItem,"1","");
var_Note4.RelativePosition = "S+6";
var_Note4.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"8");
var_Note4.set_PartFixedWidth(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,18);
var_Note4.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,-9);
var_Note4.set_PartBackColor(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,Color.FromArgb(255,0,0));
var_Note4.ShowLink = exontrol.EXG2ANTTLib.NoteLinkTypeEnum.exNoteLinkHidden;
var_Note4.set_PartVisible(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,true);
exontrol.EXG2ANTTLib.Note var_Note5 = var_Notes.Add("Z",exg2antt1.Items.FirstVisibleItem,"1","");
var_Note5.RelativePosition = "E";
var_Note5.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"4");
var_Note5.set_PartFixedWidth(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,18);
var_Note5.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,-9);
var_Note5.set_PartBackColor(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,Color.FromArgb(255,128,0));
var_Note5.set_PartCanMove(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,true);
var_Note5.ShowLink = exontrol.EXG2ANTTLib.NoteLinkTypeEnum.exNoteLinkHidden;
var_Note5.set_PartVisible(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,true);
exg2antt1.EndUpdate();
|
995
|
How can I assign a note to be always in the center of the bar

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1",null);
exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes;
exontrol.EXG2ANTTLib.Note var_Note = var_Notes.Add("Note",exg2antt1.Items.FirstVisibleItem,"1","");
var_Note.RelativePosition = 0.5;
var_Note.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"note<br>center");
var_Note.set_PartBackColor(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,Color.FromArgb(255,255,0));
var_Note.set_PartVisible(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
var_Note.ShowLink = exontrol.EXG2ANTTLib.NoteLinkTypeEnum.exNoteLinkHidden;
exg2antt1.EndUpdate();
|
994
|
How can I assign a note relative to the start of the bar, and let it be movable

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1",null);
exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes;
exontrol.EXG2ANTTLib.Note var_Note = var_Notes.Add("Note",exg2antt1.Items.FirstVisibleItem,"1","");
var_Note.RelativePosition = "S+1";
var_Note.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"<%d%>");
var_Note.set_PartFixedWidth(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,18);
var_Note.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,9);
var_Note.set_PartCanMove(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,true);
var_Note.set_PartBackColor(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,Color.FromArgb(255,255,0));
var_Note.set_PartVisible(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
var_Note.ShowLink = exontrol.EXG2ANTTLib.NoteLinkTypeEnum.exNoteLinkHidden;
exg2antt1.EndUpdate();
|
993
|
How can I associate a note relative to the start of the bar

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1",null);
exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes;
exontrol.EXG2ANTTLib.Note var_Note = var_Notes.Add("Note",exg2antt1.Items.FirstVisibleItem,"1","");
var_Note.RelativePosition = "S+1";
var_Note.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"<%d%>");
var_Note.set_PartFixedWidth(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,18);
var_Note.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,9);
var_Note.set_PartBackColor(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,Color.FromArgb(255,255,0));
var_Note.set_PartVisible(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
var_Note.ShowLink = exontrol.EXG2ANTTLib.NoteLinkTypeEnum.exNoteLinkHidden;
exg2antt1.EndUpdate();
|
992
|
How can I associate a note relative to the end of the bar, so if the bar is resized at the end, the not is moved accordingly

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1",null);
exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes;
exontrol.EXG2ANTTLib.Note var_Note = var_Notes.Add("Note",exg2antt1.Items.FirstVisibleItem,"1","");
var_Note.RelativePosition = "E-1";
var_Note.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"<%d%>");
var_Note.set_PartFixedWidth(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,18);
var_Note.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,9);
var_Note.set_PartVisible(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
var_Note.ShowLink = exontrol.EXG2ANTTLib.NoteLinkTypeEnum.exNoteLinkHidden;
exg2antt1.EndUpdate();
|
991
|
How can I associate a note relative to the end of the bar, so if the bar is resized at the end, the not is moved accordingly

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1",null);
exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes;
exontrol.EXG2ANTTLib.Note var_Note = var_Notes.Add("Note",exg2antt1.Items.FirstVisibleItem,"1","");
var_Note.RelativePosition = 1;
var_Note.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"End");
var_Note.set_PartVisible(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
var_Note.ShowLink = exontrol.EXG2ANTTLib.NoteLinkTypeEnum.exNoteLinkHidden;
exg2antt1.EndUpdate();
|
990
|
How can I hide a bar without removing it
exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,128);
var_Chart.LevelCount = 2;
exg2antt1.HeaderVisible = exontrol.EXG2ANTTLib.HeaderVisibleEnum.exHeaderVisibleExtendLevels;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B1",null);
var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B2",null);
var_Items.AddLink("L1",var_Items.get_FindItem("Item 1",0,null),"B1",var_Items.get_FindItem("Item 2",0,null),"B2");
var_Items.set_ItemBar(var_Items.FirstVisibleItem,var_Items.get_FirstItemBar(var_Items.FirstVisibleItem),exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarTransparent,100);
exg2antt1.EndUpdate();
|
989
|
How can I align the caption in the note

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1",null);
exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes;
exontrol.EXG2ANTTLib.Note var_Note = var_Notes.Add("N1",exg2antt1.Items.FirstVisibleItem,"1","");
var_Note.ShowLink = exontrol.EXG2ANTTLib.NoteLinkTypeEnum.exNoteLinkHidden;
var_Note.set_PartVisible(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
var_Note.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"S <b><%dd%></b>");
var_Note.set_PartFixedWidth(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,48);
var_Note.set_PartAlignment(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,exontrol.EXG2ANTTLib.AlignmentEnum.LeftAlignment);
var_Note.set_PartVOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,17);
exontrol.EXG2ANTTLib.Note var_Note1 = var_Notes.Add("N2",exg2antt1.Items.FirstVisibleItem,"1","");
var_Note1.RelativePosition = 1;
var_Note1.ShowLink = exontrol.EXG2ANTTLib.NoteLinkTypeEnum.exNoteLinkHidden;
var_Note1.set_PartVisible(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
var_Note1.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"E <b><%dd%></b>");
var_Note1.set_PartFixedWidth(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,48);
var_Note1.set_PartAlignment(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,exontrol.EXG2ANTTLib.AlignmentEnum.RightAlignment);
var_Note1.set_PartVOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,17);
exg2antt1.EndUpdate();
|
988
|
How I can assign a note and let user move the note relative to the bar

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1",null);
exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes;
exontrol.EXG2ANTTLib.Note var_Note = var_Notes.Add("Note",exg2antt1.Items.FirstVisibleItem,"1","End");
var_Note.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"Day<br> <%dd%>");
var_Note.set_PartCanMove(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,true);
var_Note.set_PartVOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,16);
var_Note.set_PartTransparency(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,30);
var_Note.set_PartToolTip(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"Click the note and start moving to a new position.");
exg2antt1.EndUpdate();
|
987
|
How can I assign a picture as a note associated with a bar

exg2antt1.BeginUpdate();
exg2antt1.set_HTMLPicture("pic1","c:\\exontrol\\images\\zipdisk.gif");
exg2antt1.set_HTMLPicture("pic2","c:\\exontrol\\images\\auction.gif");
exg2antt1.AntiAliasing = true;
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1",null);
h = var_Items.AddItem("Task 2");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"2",null);
exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes;
exontrol.EXG2ANTTLib.Note var_Note = var_Notes.Add("1",exg2antt1.Items[0],"1","<img>pic1</img>");
var_Note.set_PartShadow(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
var_Note.set_PartBorderSize(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,0);
var_Note.ClearPartBackColor(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd);
var_Note.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,-64);
var_Note.set_PartCanMove(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,true);
exontrol.EXG2ANTTLib.Note var_Note1 = var_Notes.Add("2",exg2antt1.Items[1],"2","<img>pic2</img>");
var_Note1.set_PartShadow(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
var_Note1.set_PartBorderSize(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,0);
var_Note1.ClearPartBackColor(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd);
var_Note1.RelativePosition = 1;
var_Note1.set_PartCanMove(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,true);
var_Note1.LinkColor = Color.FromArgb(255,0,0);
var_Note1.LinkWidth = 2;
var_Note1.LinkStyle = exontrol.EXG2ANTTLib.LinkStyleEnum.exLinkDot;
var_Note1.ShowLink = exontrol.EXG2ANTTLib.NoteLinkTypeEnum.exNoteLinkVisible;
exg2antt1.EndUpdate();
|
986
|
How can I assign a picture as a note associated with a bar

exg2antt1.BeginUpdate();
exg2antt1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
exg2antt1.AntiAliasing = true;
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1",null);
h = var_Items.AddItem("Task 2");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"2",null);
exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes;
exontrol.EXG2ANTTLib.Note var_Note = var_Notes.Add("1",exg2antt1.Items[0],"1","<img>1</img>");
var_Note.set_PartShadow(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
var_Note.set_PartBorderSize(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,0);
var_Note.ClearPartBackColor(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd);
exontrol.EXG2ANTTLib.Note var_Note1 = var_Notes.Add("2",exg2antt1.Items[1],"2","<img>2</img>...<img>3</img>");
var_Note1.set_PartShadow(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false);
var_Note1.set_PartBorderSize(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,0);
var_Note1.ClearPartBackColor(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd);
var_Note1.RelativePosition = 1;
var_Note1.set_PartCanMove(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,true);
var_Note1.LinkColor = Color.FromArgb(255,0,0);
var_Note1.LinkWidth = 2;
var_Note1.LinkStyle = exontrol.EXG2ANTTLib.LinkStyleEnum.exLinkDot;
exg2antt1.EndUpdate();
|
985
|
How can I put a box assigned to a DATE

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Item 1");
h = var_Items.AddItem("Item 2");
exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes;
exontrol.EXG2ANTTLib.Note var_Note = var_Notes.Add("D1",exg2antt1.Items.FirstVisibleItem,exg2antt1.Chart.FirstVisibleDate,"Date:<br><%dd%>/<%mm%><br><b><%yyyy%></b>");
var_Note.set_PartCanMove(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,true);
var_Note.set_PartVOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,20);
var_Note.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,20);
exontrol.EXG2ANTTLib.Note var_Note1 = var_Notes.Add("D2",exg2antt1.Items.get_NextVisibleItem(exg2antt1.Items.FirstVisibleItem),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"Date:<br><%dd%>/<%mm%><br><b><%yyyy%></b>");
var_Note1.set_PartVisible(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,true);
var_Note1.set_PartText(exontrol.EXG2ANTTLib.NotePartEnum.exNoteStart,"<b><%d%></b>");
var_Note1.set_PartCanMove(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,true);
var_Note1.set_PartVOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,20);
var_Note1.set_PartHOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,20);
exg2antt1.EndUpdate();
|
984
|
How can I add a note or a box associated with a bar

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1","Center");
var_Items.set_ItemBar(h,"1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"left");
var_Items.set_ItemBar(h,"1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,16);
h = var_Items.AddItem("Task 2");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"2","Center");
var_Items.set_ItemBar(h,"2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"right");
var_Items.set_ItemBar(h,"2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,18);
exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes;
var_Notes.Add("1S",exg2antt1.Items.FirstVisibleItem,"1","Start");
var_Notes.Add("1F",exg2antt1.Items.FirstVisibleItem,"1","End").RelativePosition = 1;
exg2antt1.EndUpdate();
|
983
|
Is it possible to define different working hours for every week day

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.set_PaneWidth(false,14);
var_Chart.NonworkingDays = 0;
var_Chart.NonworkingHours = 0;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.LevelCount = 2;
exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
var_Level.Label = "<%dddd%>";
exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
var_Level1.Label = "<%hh%>";
var_Level1.Count = 6;
var_Chart.UnitWidth = 16;
exg2antt1.Columns.Add("");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem(1);
var_Items.set_ItemNonworkingUnits(h,false,"weekday(value) != 1 or (weekday(value) = 1 and not ( hour(value) >= 9 and hour(value) <= 14 ))");
h = var_Items.AddItem(2);
var_Items.set_ItemNonworkingUnits(h,false,"weekday(value) = 2 and ( hour(value) >= 9 and hour(value) <= 14 )");
h = var_Items.AddItem(3);
var_Items.set_ItemNonworkingUnits(h,false,"weekday(value) = 3");
exg2antt1.EndUpdate();
|
982
|
How can I automatically update the exBarPercent value using a slider control

exg2antt1.BeginUpdate();
exg2antt1.Items.AllowCellValueToItemBar = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,128);
var_Chart.Bars.Add("Task%Progress").Shortcut = "Percent";
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Percent") as exontrol.EXG2ANTTLib.Column);
var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,518);
var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarKey,"P");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int i = var_Items.AddItem(0);
var_Items.set_CellBold(i,0,true);
var_Items.get_CellEditor(i,0).EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SliderType;
var_Items.AddBar(i,"Percent",Convert.ToDateTime("1/2/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"P",null);
var_Items.set_ItemBar(i,"P",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarShowPercentCaption,true);
var_Items.set_CellValue(i,0,50);
exg2antt1.EndUpdate();
|
981
|
Is there any automatic way to change a property for all bars in the chart
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
var_Items.AddBar(var_Items.AddItem("Task 4"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K4",null);
var_Items.set_ItemBar(0,"<*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
|
980
|
How can I assign an icon to a bar and I get notified when I click it

exg2antt1.BeginUpdate();
exg2antt1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","Caption");
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"<a1><img>1:8</img></a><a1><img>2</img></a>");
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,16);
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHOffset,5);
exg2antt1.EndUpdate();
|
979
|
How can I assign an icon to a bar so I do not break its caption

exg2antt1.BeginUpdate();
exg2antt1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","Caption");
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"<img>1</img>");
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,16);
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHOffset,5);
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionVOffset,2);
exg2antt1.EndUpdate();
|
978
|
How can I assign multiple lables to the same bar

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","Right");
var_Items.set_ItemBar(h1,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
var_Items.AddBar(h1,"",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1","Left");
var_Items.set_ItemBar(h1,"T1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,16);
var_Items.AddBar(h1,"",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T2","Center");
var_Items.GroupBars(h1,"",true,h1,"T1",true,null,null);
var_Items.GroupBars(h1,"",true,h1,"T1",false,null,null);
var_Items.GroupBars(h1,"",true,h1,"T2",true,null,null);
var_Items.GroupBars(h1,"",false,h1,"T2",false,null,null);
exg2antt1.EndUpdate();
|
977
|
Is there any way to have more Captions on a bar than one

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","Right");
var_Items.set_ItemBar(h1,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
var_Items.AddBar(h1,"",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1","Left");
var_Items.set_ItemBar(h1,"T1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,16);
var_Items.GroupBars(h1,"",true,h1,"T1",true,null,null);
var_Items.GroupBars(h1,"",true,h1,"T1",false,null,null);
exg2antt1.EndUpdate();
|
976
|
How can I assign multiple lables to the same bar at once

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","Center");
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"left");
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,16);
h = var_Items.AddItem("Task 2");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","Center");
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"right");
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,18);
exg2antt1.EndUpdate();
|
975
|
How can I limit the duration or length of the bar
exg2antt1.BeginUpdate();
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Chart.set_ScrollRange(exontrol.EXG2ANTTLib.ScrollRangeEnum.exStartDate,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.Chart.set_ScrollRange(exontrol.EXG2ANTTLib.ScrollRangeEnum.exEndDate,Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
exg2antt1.Chart.set_PaneWidth(false,128);
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Item 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMinDuration,2);
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMaxDuration,5);
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"Min=2 / Max=5");
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
exg2antt1.EndUpdate();
|
974
|
I have an EBN file how can I apply different colors to it, so no need to create a new one

exg2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
exg2antt1.SelBackColor = exg2antt1.BackColor;
exg2antt1.SelForeColor = exg2antt1.ForeColor;
exg2antt1.HasLines = exontrol.EXG2ANTTLib.HierarchyLineEnum.exNoLine;
exg2antt1.Columns.Add("Default");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Root");
int hC = var_Items.InsertItem(h,null,"Default");
var_Items.set_ItemBackColor32(hC,0x1000000);
var_Items.set_ItemHeight(var_Items.InsertItem(h,null,""),6);
hC = var_Items.InsertItem(h,null,"Light Green");
var_Items.set_ItemBackColor32(hC,0x100ff00);
exg2antt1.Chart.set_ItemBackColor32(hC,0x100ff00);
var_Items.set_ItemHeight(var_Items.InsertItem(h,null,""),6);
hC = var_Items.InsertItem(h,null,"Dark Green");
var_Items.set_ItemBackColor32(hC,0x1007f00);
var_Items.set_ItemHeight(var_Items.InsertItem(h,null,""),6);
hC = var_Items.InsertItem(h,null,"Magenta");
var_Items.set_ItemBackColor32(hC,0x1ff7fff);
var_Items.set_ItemHeight(var_Items.InsertItem(h,null,""),6);
hC = var_Items.InsertItem(h,null,"Yellow");
var_Items.set_ItemBackColor32(hC,0x17fffff);
var_Items.set_ItemHeight(var_Items.InsertItem(h,null,""),6);
var_Items.set_ExpandItem(h,true);
|
973
|
I need to specify the non-working hours for about 100 days for each item, but the scrolling is very slow. Is there any option to increase the speed

exg2antt1.BeginUpdate();
exg2antt1.AllowChartScrollPage = true;
exg2antt1.Columns.Add("Non-Work");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("4/4/2009 16:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,52);
var_Chart.LevelCount = 2;
var_Chart.UnitWidth = 16;
exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
var_Level.Label = "<r><%d%>-<%mmm%>";
var_Level.Unit = exontrol.EXG2ANTTLib.UnitEnum.exDay;
exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
var_Level1.Label = "<%hh%>";
var_Level1.Unit = exontrol.EXG2ANTTLib.UnitEnum.exHour;
var_Level1.Count = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddItem("Default");
var_Items.set_ItemNonworkingUnits(var_Items.AddItem("Test"),false,"date(shortdate(value)) case(default:0;#4/5/2009# : hour(value) >= 6 and hour(value) <= 12; #4/6/2009# : hour(value) >= 6 and ho" +
"ur(value) <= 12; #4/7/2009# : hour(value) >= 6 and hour(value) <= 12; #4/8/2009# : hour(value) >= 6 and hour(value) <= 12; #4/9/" +
"2009# : hour(value) >= 6 and hour(value) <= 12; #4/10/2009# : hour(value) >= 6 and hour(value) <= 12; #4/11/2009# : hour(value) " +
">= 6 and hour(value) <= 12; #4/12/2009# : hour(value) >= 6 and hour(value) <= 12; #4/13/2009# : hour(value) >= 6 and hour(value)" +
" <= 12; #4/14/2009# : hour(value) >= 6 and hour(value) <= 12; #4/15/2009# : hour(value) >= 6 and hour(value) <= 12; #4/16/2009# " +
": hour(value) >= 6 and hour(value) <= 12; #4/17/2009# : hour(value) >= 6 and hour(value) <= 12; #4/18/2009# : hour(value) >= 6 a" +
"nd hour(value) <= 12; #4/19/2009# : hour(value) >= 6 and hour(value) <= 12; #4/20/2009# : hour(value) >= 6 and hour(value) <= 12" +
"; #4/21/2009# : hour(value) >= 6 and hour(value) <= 12; #4/22/2009# : hour(value) >= 6 and hour(value) <= 12; #4/23/2009# : hour" +
"(value) >= 6 and hour(value) <= 12; #4/24/2009# : hour(value) >= 6 and hour(value) <= 12; #4/25/2009# : hour(value) >= 6 and hou" +
"r(value) <= 12; #4/26/2009# : hour(value) >= 6 and hour(value) <= 12; #4/27/2009# : hour(value) >= 6 and hour(value) <= 12; #4/2" +
"8/2009# : hour(value) >= 6 and hour(value) <= 12; #4/29/2009# : hour(value) >= 6 and hour(value) <= 12; #4/30/2009# : hour(value" +
") >= 6 and hour(value) <= 12; #5/1/2009# : hour(value) >= 6 and hour(value) <= 12; #5/2/2009# : hour(value) >= 6 and hour(value)" +
" <= 12; #5/3/2009# : hour(value) >= 6 and hour(value) <= 12; #5/4/2009# : hour(value) >= 6 and hour(value) <= 12; #5/5/2009# : h" +
"our(value) >= 6 and hour(value) <= 12; #5/6/2009# : hour(value) >= 6 and hour(value) <= 12; #5/7/2009# : hour(value) >= 6 and ho" +
"ur(value) <= 12; #5/8/2009# : hour(value) >= 6 and hour(value) <= 12; #5/9/2009# : hour(value) >= 6 and hour(value) <= 12; #5/10" +
"/2009# : hour(value) >= 6 and hour(value) <= 12; #5/11/2009# : hour(value) >= 6 and hour(value) <= 12; #5/13/2009# : hour(value)" +
" >= 6 and hour(value) <= 12; #5/14/2009# : hour(value) >= 6 and hour(value) <= 12; #5/15/2009# : hour(value) >= 6 and hour(value" +
") <= 12; #5/16/2009# : hour(value) >= 6 and hour(value) <= 12; #5/17/2009# : hour(value) >= 6 and hour(value) <= 12; #5/18/2009#" +
" : hour(value) >= 6 and hour(value) <= 12; #5/19/2009# : hour(value) >= 6 and hour(value) <= 12; #5/20/2009# : hour(value) >= 6 " +
"and hour(value) <= 12; #5/21/2009# : hour(value) >= 6 and hour(value) <= 12; #5/22/2009# : hour(value) >= 6 and hour(value) <= 1" +
"2; #5/23/2009# : hour(value) >= 6 and hour(value) <= 12; #5/24/2009# : hour(value) >= 6 and hour(value) <= 12; #5/25/2009# : hou" +
"r(value) >= 6 and hour(value) <= 12; #5/26/2009# : hour(value) >= 6 and hour(value) <= 12; #5/27/2009# : hour(value) >= 6 and ho" +
"ur(value) <= 12; #5/28/2009# : hour(value) >= 6 and hour(value) <= 12; #5/29/2009# : hour(value) >= 6 and hour(value) <= 12; #5/" +
"30/2009# : hour(value) >= 6 and hour(value) <= 12; #5/31/2009# : hour(value) >= 6 and hour(value) <= 12; #6/1/2009# : hour(value" +
") >= 6 and hour(value) <= 12; #6/2/2009# : hour(value) >= 6 and hour(value) <= 12; #6/3/2009# : hour(value) >= 6 and hour(value)" +
" <= 12; #6/4/2009# : hour(value) >= 6 and hour(value) <= 12; #6/5/2009# : hour(value) >= 6 and hour(value) <= 12; #6/6/2009# : h" +
"our(value) >= 6 and hour(value) <= 12; #6/7/2009# : hour(value) >= 6 and hour(value) <= 12; #6/8/2009# : hour(value) >= 6 and ho" +
"ur(value) <= 12; #6/9/2009# : hour(value) >= 6 and hour(value) <= 12; #6/10/2009# : hour(value) >= 6 and hour(value) <= 12; #6/1" +
"1/2009# : hour(value) >= 6 and hour(value) <= 12; #6/12/2009# : hour(value) >= 6 and hour(value) <= 12; #6/13/2009# : hour(value" +
") >= 6 and hour(value) <= 12; #6/14/2009# : hour(value) >= 6 and hour(value) <= 12; #6/15/2009# : hour(value) >= 6 and hour(valu" +
"e) <= 12; #6/16/2009# : hour(value) >= 6 and hour(value) <= 12; #6/17/2009# : hour(value) >= 6 and hour(value) <= 12; #6/18/2009" +
"# : hour(value) >= 6 and hour(value) <= 12; #6/19/2009# : hour(value) >= 6 and hour(value) <= 12; #6/21/2009# : hour(value) >= 6" +
" and hour(value) <= 12; #6/22/2009# : hour(value) >= 6 and hour(value) <= 12; #6/23/2009# : hour(value) >= 6 and hour(value) <= " +
"12; #6/24/2009# : hour(value) >= 6 and hour(value) <= 12; #6/25/2009# : hour(value) >= 6 and hour(value) <= 12; #6/26/2009# : ho" +
"ur(value) >= 6 and hour(value) <= 12; #6/27/2009# : hour(value) >= 6 and hour(value) <= 12; #6/28/2009# : hour(value) >= 6 and h" +
"our(value) <= 12; #6/29/2009# : hour(value) >= 6 and hour(value) <= 12; #6/30/2009# : hour(value) >= 6 and hour(value) <= 12; #7" +
"/1/2009# : hour(value) >= 6 and hour(value) <= 12; #7/2/2009# : hour(value) >= 6 and hour(value) <= 12; #7/3/2009# : hour(value)" +
" >= 6 and hour(value) <= 12; #7/4/2009# : hour(value) >= 6 and hour(value) <= 12; #7/5/2009# : hour(value) >= 6 and hour(value) " +
"<= 12; #7/6/2009# : hour(value) >= 6 and hour(value) <= 12; #7/7/2009# : hour(value) >= 6 and hour(value) <= 12; #7/8/2009# : ho" +
"ur(value) >= 6 and hour(value) <= 12; #7/9/2009# : hour(value) >= 6 and hour(value) <= 12; #7/10/2009# : hour(value) >= 6 and ho" +
"ur(value) <= 12; #7/11/2009# : hour(value) >= 6 and hour(value) <= 12; #7/12/2009# : hour(value) >= 6 and hour(value) <= 12; #7/" +
"13/2009# : hour(value) >= 6 and hour(value) <= 12; #7/14/2009# : hour(value) >= 6 and hour(value) <= 12)");
var_Items.set_ItemNonworkingUnits(var_Items.AddItem("Test"),false,"date(shortdate(value)) case(default:0;#4/5/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/6" +
"/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/7/2009# : hour(value) >= 6 and hour(value) <" +
"= 10 or hour(value) in (16,17,20,21); #4/8/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/9/" +
"2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/10/2009# : hour(value) >= 6 and hour(value) <" +
"= 10 or hour(value) in (16,17,20,21); #4/11/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/1" +
"2/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/13/2009# : hour(value) >= 6 and hour(value)" +
" <= 10 or hour(value) in (16,17,20,21); #4/14/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4" +
"/15/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/16/2009# : hour(value) >= 6 and hour(valu" +
"e) <= 10 or hour(value) in (16,17,20,21); #4/17/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); " +
"#4/18/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/19/2009# : hour(value) >= 6 and hour(va" +
"lue) <= 10 or hour(value) in (16,17,20,21); #4/20/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21)" +
"; #4/21/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/22/2009# : hour(value) >= 6 and hour(" +
"value) <= 10 or hour(value) in (16,17,20,21); #4/23/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,2" +
"1); #4/24/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/25/2009# : hour(value) >= 6 and hou" +
"r(value) <= 10 or hour(value) in (16,17,20,21); #4/26/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20" +
",21); #4/27/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #4/28/2009# : hour(value) >= 6 and h" +
"our(value) <= 10 or hour(value) in (16,17,20,21); #4/29/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17," +
"20,21); #4/30/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/1/2009# : hour(value) >= 6 and " +
"hour(value) <= 10 or hour(value) in (16,17,20,21); #5/2/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17," +
"20,21); #5/3/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/4/2009# : hour(value) >= 6 and h" +
"our(value) <= 10 or hour(value) in (16,17,20,21); #5/5/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,2" +
"0,21); #5/6/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/7/2009# : hour(value) >= 6 and ho" +
"ur(value) <= 10 or hour(value) in (16,17,20,21); #5/8/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20" +
",21); #5/9/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/10/2009# : hour(value) >= 6 and ho" +
"ur(value) <= 10 or hour(value) in (16,17,20,21); #5/11/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,2" +
"0,21); #5/13/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/14/2009# : hour(value) >= 6 and " +
"hour(value) <= 10 or hour(value) in (16,17,20,21); #5/15/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17" +
",20,21); #5/16/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/17/2009# : hour(value) >= 6 an" +
"d hour(value) <= 10 or hour(value) in (16,17,20,21); #5/18/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16," +
"17,20,21); #5/19/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/20/2009# : hour(value) >= 6 " +
"and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/21/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (1" +
"6,17,20,21); #5/22/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/23/2009# : hour(value) >= " +
"6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/24/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in " +
"(16,17,20,21); #5/25/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/26/2009# : hour(value) >" +
"= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/27/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) i" +
"n (16,17,20,21); #5/28/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/29/2009# : hour(value)" +
" >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #5/30/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value)" +
" in (16,17,20,21); #5/31/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/1/2009# : hour(value" +
") >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/2/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value)" +
" in (16,17,20,21); #6/3/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/4/2009# : hour(value)" +
" >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/5/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) " +
"in (16,17,20,21); #6/6/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/7/2009# : hour(value) " +
">= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/8/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) i" +
"n (16,17,20,21); #6/9/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/10/2009# : hour(value) " +
">= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/11/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) " +
"in (16,17,20,21); #6/12/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/13/2009# : hour(value" +
") >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/14/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value" +
") in (16,17,20,21); #6/15/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/16/2009# : hour(val" +
"ue) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/17/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(val" +
"ue) in (16,17,20,21); #6/18/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/19/2009# : hour(v" +
"alue) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/21/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(v" +
"alue) in (16,17,20,21); #6/22/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/23/2009# : hour" +
"(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/24/2009# : hour(value) >= 6 and hour(value) <= 10 or hour" +
"(value) in (16,17,20,21); #6/25/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/26/2009# : ho" +
"ur(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/27/2009# : hour(value) >= 6 and hour(value) <= 10 or ho" +
"ur(value) in (16,17,20,21); #6/28/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/29/2009# : " +
"hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #6/30/2009# : hour(value) >= 6 and hour(value) <= 10 or " +
"hour(value) in (16,17,20,21); #7/1/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/2/2009# : " +
"hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/3/2009# : hour(value) >= 6 and hour(value) <= 10 or h" +
"our(value) in (16,17,20,21); #7/4/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/5/2009# : h" +
"our(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/6/2009# : hour(value) >= 6 and hour(value) <= 10 or ho" +
"ur(value) in (16,17,20,21); #7/7/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/8/2009# : ho" +
"ur(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/9/2009# : hour(value) >= 6 and hour(value) <= 10 or hou" +
"r(value) in (16,17,20,21); #7/10/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/11/2009# : h" +
"our(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/12/2009# : hour(value) >= 6 and hour(value) <= 10 or h" +
"our(value) in (16,17,20,21); #7/13/2009# : hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21); #7/14/2009# :" +
" hour(value) >= 6 and hour(value) <= 10 or hour(value) in (16,17,20,21))");
var_Items.AddItem("Default");
exg2antt1.EndUpdate();
|
972
|
How can I use the CASE statement (CASE usage)
exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Value") as exontrol.EXG2ANTTLib.Column);
var_Column.Width = 24;
var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("CASE - statment") as exontrol.EXG2ANTTLib.Column);
var_Column1.ComputedField = "%0 case (default:'not found';1:%0;2:2*%0;3:3*%0;4:4*%0;5:5*%0;7:'Seven';8:'Eight';9:'Nine';11:'Eleven';13:'Thirtheen';14:'Fourt" +
"heen')";
var_Column1.ToolTip = var_Column1.ComputedField;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddItem(0);
var_Items.AddItem(1);
var_Items.AddItem(2);
exg2antt1.EndUpdate();
|
971
|
How can I use the CASE statement (CASE usage)
exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Value") as exontrol.EXG2ANTTLib.Column);
var_Column.Width = 24;
var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("CASE - statment") as exontrol.EXG2ANTTLib.Column);
var_Column1.ComputedField = "%0 case (default:'not found';1:'One';2:'Two';3:'Three';4:'Four';5:'Five';7:'Seven';8:'Eight';9:'Nine';11:'Eleven';13:'Thirtheen" +
"';14:'Fourtheen')";
var_Column1.ToolTip = var_Column1.ComputedField;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddItem(0);
var_Items.AddItem(1);
var_Items.AddItem(2);
exg2antt1.EndUpdate();
|
970
|
I have seen the IN function but it returns -1 or 0. How can I display the value being found ( SWITCH usage )
exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Value") as exontrol.EXG2ANTTLib.Column);
var_Column.Width = 24;
var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("SWITCH - statment") as exontrol.EXG2ANTTLib.Column);
var_Column1.ComputedField = "%0 switch ('not found', 1,2,3,4,5,7,8,9,11,13,14)";
var_Column1.ToolTip = var_Column1.ComputedField;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddItem(0);
var_Items.AddItem(1);
var_Items.AddItem(2);
exg2antt1.EndUpdate();
|
969
|
I have a large collection of constant values and using or operator is a time consuming (IN usage). Is there any way to increase the speed to check if a value maches the collection
exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Value") as exontrol.EXG2ANTTLib.Column);
var_Column.Width = 24;
var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("IN - statment") as exontrol.EXG2ANTTLib.Column);
var_Column1.ComputedField = "%0 in (1,2,3,4,5,7,8,9,11,13,14) ? 'found' : ''";
var_Column1.ToolTip = var_Column1.ComputedField;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddItem(0);
var_Items.AddItem(1);
var_Items.AddItem(2);
exg2antt1.EndUpdate();
|
968
|
How can I automatically update the exBarPercent value using a slider control

exg2antt1.BeginUpdate();
exg2antt1.Items.AllowCellValueToItemBar = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,128);
var_Chart.Bars.Add("Task%Progress").Shortcut = "Percent";
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Percent") as exontrol.EXG2ANTTLib.Column);
var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,12);
var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarKey,"P");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int i = var_Items.AddItem(0);
var_Items.set_CellBold(i,0,true);
exontrol.EXG2ANTTLib.Editor var_Editor = var_Items.get_CellEditor(i,0);
var_Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SliderType;
var_Editor.set_Option(exontrol.EXG2ANTTLib.EditorOptionEnum.exSliderStep,0.01);
var_Editor.set_Option(exontrol.EXG2ANTTLib.EditorOptionEnum.exSpinStep,0.01);
var_Editor.set_Option(exontrol.EXG2ANTTLib.EditorOptionEnum.exSliderMax,1);
var_Editor.set_Option(exontrol.EXG2ANTTLib.EditorOptionEnum.exSliderWidth,-100);
var_Items.set_CellValueFormat(i,0,exontrol.EXG2ANTTLib.ValueFormatEnum.exHTML);
var_Items.AddBar(i,"Percent",Convert.ToDateTime("1/2/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"P",null);
var_Items.set_ItemBar(i,"P",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarShowPercentCaption,true);
var_Items.set_CellValue(i,0,0.5);
exg2antt1.EndUpdate();
|
967
|
How can I automatically update the exBarPercent value using a spin control

exg2antt1.BeginUpdate();
exg2antt1.Items.AllowCellValueToItemBar = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,128);
var_Chart.Bars.Add("Task%Progress").Shortcut = "Percent";
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Percent") as exontrol.EXG2ANTTLib.Column);
var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,12);
var_Column.FormatColumn = "((0:=round(dbl(%0)*100)) >= 50 ? '<font 8>'+ =:0 + '%</font>' : '<fgcolor=808080><font 6>'+ =:0 + '%</font></fgcolor>')";
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int i = var_Items.AddItem(0);
var_Items.set_CellBold(i,0,true);
exontrol.EXG2ANTTLib.Editor var_Editor = var_Items.get_CellEditor(i,0);
var_Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
var_Editor.set_Option(exontrol.EXG2ANTTLib.EditorOptionEnum.exSpinStep,0.01);
var_Editor.set_Option(exontrol.EXG2ANTTLib.EditorOptionEnum.exSliderMax,1);
var_Items.set_CellValueFormat(i,0,exontrol.EXG2ANTTLib.ValueFormatEnum.exHTML);
var_Items.AddBar(i,"Percent",Convert.ToDateTime("1/2/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_CellValue(i,0,0.5);
exg2antt1.EndUpdate();
|
966
|
How do I specify for an item all units as being non-working units

exg2antt1.BeginUpdate();
exg2antt1.AllowChartScrollPage = true;
exg2antt1.Columns.Add("Non-Work");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto;
var_Chart.FirstVisibleDate = Convert.ToDateTime("4/3/2009 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,64);
var_Chart.LevelCount = 2;
var_Chart.UnitWidth = 16;
exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
var_Level.Label = "<r><%d%>-<%mmm%>";
var_Level.Unit = exontrol.EXG2ANTTLib.UnitEnum.exDay;
exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
var_Level1.Label = "<%hh%>";
var_Level1.Unit = exontrol.EXG2ANTTLib.UnitEnum.exHour;
var_Level1.Count = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddItem("Default");
var_Items.set_ItemNonworkingUnits(var_Items.AddItem("All-Non-Working"),false,"1");
var_Items.AddItem("Default");
exg2antt1.EndUpdate();
|
965
|
How do I specify for an item all units as being working units

exg2antt1.BeginUpdate();
exg2antt1.AllowChartScrollPage = true;
exg2antt1.Columns.Add("Non-Work");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto;
var_Chart.FirstVisibleDate = Convert.ToDateTime("4/3/2009 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,64);
var_Chart.LevelCount = 2;
var_Chart.UnitWidth = 16;
exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
var_Level.Label = "<r><%d%>-<%mmm%>";
var_Level.Unit = exontrol.EXG2ANTTLib.UnitEnum.exDay;
exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
var_Level1.Label = "<%hh%>";
var_Level1.Unit = exontrol.EXG2ANTTLib.UnitEnum.exHour;
var_Level1.Count = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddItem("Default");
var_Items.set_ItemNonworkingUnits(var_Items.AddItem("All-Working"),false,"0");
var_Items.AddItem("Default");
exg2antt1.EndUpdate();
|
964
|
How can I programmatically specify different non-working units ( days, hours ) for different items

exg2antt1.BeginUpdate();
exg2antt1.AllowChartScrollPage = true;
exg2antt1.Columns.Add("Non-Work");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto;
var_Chart.Bars.Add("Task:Split").Shortcut = "Task";
var_Chart.FirstVisibleDate = Convert.ToDateTime("7/13/2009 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,52);
var_Chart.LevelCount = 2;
var_Chart.UnitWidth = 16;
exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
var_Level.Label = "<r><b><%d%></b> <%mmm%> <%yyyy%>";
var_Level.Unit = exontrol.EXG2ANTTLib.UnitEnum.exDay;
exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
var_Level1.Label = "<%hh%>";
var_Level1.Unit = exontrol.EXG2ANTTLib.UnitEnum.exHour;
var_Level1.Count = 2;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Item 1");
var_Items.set_ItemNonworkingUnits(h,false,"(shortdate(value) = #7/14/2009# and hour(value) >= 6 and hour(value) <= 12)");
var_Items.AddBar(h,"Task",Convert.ToDateTime("7/14/2009 4:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/14/2009 14:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
h = var_Items.AddItem("Item 2");
var_Items.set_ItemNonworkingUnits(h,false,"(((hour(value) >= 4 and hour(value) <= 16) or hour(value) = 2) and month(value) = 7) or ((hour(value) >= 2 and hour(value) < 10" +
")) and month(value) = 6 or weekday(value) = 6");
var_Items.AddBar(h,"Task",Convert.ToDateTime("7/14/2009 1:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/14/2009 6:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();
|
963
|
I am programmatically select a date using the Chart.SelectDate property, but can't see why the date is not highlighted. What am I doing wrong
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.SelectLevel = 1;
var_Chart.set_SelectDate(Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),true);
|
962
|
How do I show a shorter line in the chart's level

exg2antt1.BeginUpdate();
exg2antt1.GridLineColor = Color.FromArgb(128,128,128);
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.DrawLevelSeparator = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelNoLine;
var_Chart.UnitWidth = 24;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,0);
var_Chart.LevelCount = 2;
exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
var_Level.Label = "<%dddd%>";
var_Level.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelLowerHalf | exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
var_Level1.Label = 65536;
var_Level1.Count = 6;
var_Level1.DrawTickLines = (exontrol.EXG2ANTTLib.LevelLineEnum)0x200 | exontrol.EXG2ANTTLib.LevelLineEnum.exLevelMiddleLine | exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
var_Level1.DrawTickLinesFrom(0,exontrol.EXG2ANTTLib.LevelLineEnum.exLevelUpperHalf | exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine);
exg2antt1.EndUpdate();
|
961
|
How do I replicate the screen shot http://www.exontrol.com/images/exg2antt9.jpg

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Appearance var_Appearance = exg2antt1.VisualAppearance;
var_Appearance.Add(1,"C:\\Program Files\\Exontrol\\ExG2antt.NET\\Sample\\EBN\\headdark.ebn");
var_Appearance.Add(2,"C:\\Program Files\\Exontrol\\ExG2antt.NET\\Sample\\EBN\\xpbsel.ebn");
var_Appearance.Add(3,"C:\\Program Files\\Exontrol\\ExG2antt.NET\\Sample\\EBN\\headligh.ebn");
var_Appearance.Add(4,"CP:1 0 0 1 1");
exg2antt1.BackColorHeader32 = 0x4000000;
exg2antt1.Chart.BackColorLevelHeader32 = 0x4000000;
exg2antt1.SelBackColor32 = 0x20000ff;
exg2antt1.GridLineColor = Color.FromArgb(128,128,128);
exg2antt1.HeaderHeight = 22;
exg2antt1.SelForeColor = Color.FromArgb(0,0,0);
exg2antt1.MarkSearchColumn = false;
exg2antt1.ScrollBySingleLine = false;
exg2antt1.ShowFocusRect = false;
exg2antt1.DefaultItemHeight = 48;
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns;
exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Group") as exontrol.EXG2ANTTLib.Column);
var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellBackColor,50331648);
var_Column.LevelKey = 1;
exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("Histogram") as exontrol.EXG2ANTTLib.Column);
var_Column1.Width = 18;
var_Column1.AllowSizing = false;
var_Column1.LevelKey = 1;
var_Column1.Position = 0;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("6/11/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines;
var_Chart.set_PaneWidth(false,96);
var_Chart.LevelCount = 2;
var_Chart.DrawLevelSeparator = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelNoLine;
exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
var_Level.Label = "<%mmmm%> <%yyyy%>";
var_Level.Unit = exontrol.EXG2ANTTLib.UnitEnum.exMonth;
var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
var_Level1.FormatLabel = "weekday(dvalue)=1?value:''";
var_Level1.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelLowerHalf | exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
var_Level1.DrawTickLinesFrom(0,exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine);
var_Level1.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.Color32 = 0x2000000;
var_Bar.Height = 18;
var_Bar.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStackAutoArrange | exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStack;
var_Bar.HistogramColor32 = 0x1000000;
var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 48;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramCheckedItems;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Group <b>A</b>");
var_Items.set_CellValueFormat(h,0,exontrol.EXG2ANTTLib.ValueFormatEnum.exHTML);
var_Items.set_CellMerge(h,0,1);
var_Items.AddBar(h,"Task",Convert.ToDateTime("6/12/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/19/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","Requirements");
var_Items.AddBar(h,"Task",Convert.ToDateTime("6/13/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/21/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2","Sales & Marketing");
var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
var_Items.set_CellState(h,0,1);
h = var_Items.AddItem("Group <b>B</b>");
var_Items.set_CellValueFormat(h,0,exontrol.EXG2ANTTLib.ValueFormatEnum.exHTML);
var_Items.set_CellMerge(h,0,1);
var_Items.AddBar(h,"Task",Convert.ToDateTime("6/14/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/23/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","<b>GUI</b> Design");
var_Items.AddBar(h,"Task",Convert.ToDateTime("6/18/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/25/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2","Class Design");
h = var_Items.AddItem("Group <b>C</b>");
var_Items.set_CellValueFormat(h,0,exontrol.EXG2ANTTLib.ValueFormatEnum.exHTML);
var_Items.set_CellMerge(h,0,1);
var_Items.AddBar(h,"Task",Convert.ToDateTime("6/12/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/19/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","<b>GUI</b> Coding");
var_Items.AddBar(h,"Task",Convert.ToDateTime("6/13/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/25/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2","Design & Concept");
var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,65280);
var_Items.set_ItemBar(h,"K2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,65280);
exg2antt1.EndUpdate();
|
960
|
How can I remove all bars from the chart
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.AddBar(var_Items.AddItem("Task 4"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
var_Items.ClearBars(0);
|
959
|
How can I change the color for all bars with a specified key
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.AddBar(var_Items.AddItem("Task 4"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
var_Items.set_ItemBar(0,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
|
958
|
Is there any automatic way to change a property for all bars with a specified key
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.AddBar(var_Items.AddItem("Task 4"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
var_Items.set_ItemBar(0,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
|
957
|
How can I remove all bars with specified key
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.AddBar(var_Items.AddItem("Task 4"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
var_Items.RemoveBar(0,"K1");
|
956
|
How do I several bars with different vertical offsets

exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Item");
var_Items.set_ItemHeight(h,62);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1",null);
var_Items.set_ItemBar(h,"T1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOffset,-23);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T2",null);
var_Items.set_ItemBar(h,"T2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOffset,-11);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3",null);
var_Items.set_ItemBar(h,"T3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOffset,1);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T4",null);
var_Items.set_ItemBar(h,"T4",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOffset,13);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T5",null);
var_Items.set_ItemBar(h,"T5",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOffset,25);
|
955
|
Is there any option to show gradient bars without using EBN technology

exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Bar var_Bar = exg2antt1.Chart.Bars["Task"];
var_Bar.Color = Color.FromArgb(255,0,0);
var_Bar.StartColor = Color.FromArgb(0,255,0);
var_Bar.EndColor = Color.FromArgb(255,255,0);
var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBox;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
|
954
|
How can I define a bar with border and solid filling

exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Bar var_Bar = exg2antt1.Chart.Bars["Task"];
var_Bar.Color = Color.FromArgb(255,0,0);
var_Bar.StartColor = Color.FromArgb(255,255,0);
var_Bar.EndColor = Color.FromArgb(255,255,0);
var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBox;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
|
953
|
How can I define a bar with border and solid filling

exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Bar var_Bar = exg2antt1.Chart.Bars["Task"];
var_Bar.Color = Color.FromArgb(255,0,0);
var_Bar.Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBox;
var_Bar.Height = 18;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackColor,65535);
|
952
|
How do I define a bar with solid border and filling

exg2antt1.VisualAppearance.Add(1,"C:\\Program Files\\Exontrol\\ExG2antt.NET\\sample\\EBN\\blackboxt.ebn");
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Bar var_Bar = exg2antt1.Chart.Bars["Task"];
var_Bar.Color32 = 0x1000000;
var_Bar.Height = 18;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackColor,65535);
|
951
|
Can I control the units/resource/effort being allocated to a bar when displaying OverAllocation histogram

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Effort") as exontrol.EXG2ANTTLib.Column);
var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,21);
var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.NonworkingDays = 0;
var_Chart.set_PaneWidth(false,96);
var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 202;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exRectangularCurve | exontrol.EXG2ANTTLib.PatternEnum.exPatternDot;
var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
var_Bar.HistogramCriticalValue = 50;
var_Bar.HistogramGridLinesColor = Color.FromArgb(192,192,192);
var_Bar.HistogramRulerLinesColor = Color.FromArgb(0,0,1);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AllowCellValueToItemBar = true;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/25/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_CellValue(h1,1,2);
h1 = var_Items.AddItem("Task 2");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/24/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_CellValue(h1,1,1);
h1 = var_Items.AddItem("Task 3");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/1/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_CellValue(h1,1,2);
h1 = var_Items.AddItem("Task 4");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/30/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/2/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_CellValue(h1,1,1);
exg2antt1.EndUpdate();
|
950
|
Can I control the units/resource/effort being allocated to a bar when displaying Overload histogram

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Effort") as exontrol.EXG2ANTTLib.Column);
var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,21);
var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.SpinType;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.NonworkingDays = 0;
var_Chart.set_PaneWidth(false,96);
var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 128;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = var_Bar.Pattern;
var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
var_Bar.HistogramCriticalValue = 3;
var_Bar.ShowHistogramValues = "value>3?255:1";
var_Bar.HistogramItems = -11;
var_Bar.HistogramGridLinesColor = Color.FromArgb(192,192,192);
var_Bar.HistogramRulerLinesColor = Color.FromArgb(0,0,1);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AllowCellValueToItemBar = true;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_CellValue(h1,1,4);
h1 = var_Items.AddItem("Task 2");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/24/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_CellValue(h1,1,3);
h1 = var_Items.AddItem("Task 3");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/29/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_CellValue(h1,1,2);
h1 = var_Items.AddItem("Task 4");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/30/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/2/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_CellValue(h1,1,1);
exg2antt1.EndUpdate();
|
949
|
How can I display double-lines curves in the histogram

exg2antt1.AntiAliasing = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.set_PaneWidth(false,48);
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 64;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exBezierCurve;
var_Bar.HistogramItems = 3;
var_Bar.HistogramBorderColor = Color.FromArgb(128,0,0);
var_Bar.HistogramColor = Color.FromArgb(255,0,0);
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
|
948
|
Is there any option to display values in the histogram using different colors

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 32;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
var_Bar.HistogramItems = 6;
var_Bar.ShowHistogramValues = "value>1?255:65280";
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
|
947
|
Is there any option to display values in the histogram using different colors

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 32;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
var_Bar.HistogramItems = 6;
var_Bar.ShowHistogramValues = "value>1?255:1";
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
|
946
|
How can I display only few values in the histogram, such as the values greater than a value

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 32;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
var_Bar.ShowHistogramValues = "value>1";
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
|
945
|
How can I display values in the histogram

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 32;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
var_Bar.ShowHistogramValues = "1";
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
|
944
|
How can I scroll the chart to find a bar
exg2antt1.Columns.Add("Column");
exg2antt1.Chart.LevelCount = 2;
exg2antt1.Chart.set_PaneWidth(false,64);
exg2antt1.DefaultItemHeight = 32;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1,null);
var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),2,null);
var_Items.AddBar(var_Items.AddItem("Item 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),3,null);
var_Items.AddBar(var_Items.AddItem("Item 4"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),4,null);
var_Items.AddBar(var_Items.AddItem("Item 5"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),5,null);
var_Items.AddBar(var_Items.AddItem("Item 6"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),6,null);
var_Items.AddBar(var_Items.AddItem("Item 7"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),7,null);
var_Items.AddBar(var_Items.AddItem("Item 8"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),8,null);
var_Items.AddBar(var_Items.AddItem("Item 9"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),8,null);
var_Items.AddBar(var_Items.AddItem("Item 10"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),10,null);
var_Items.AddBar(var_Items.AddItem("Item 11"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),11,null);
var_Items.AddBar(var_Items.AddItem("Item 12"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),12,null);
var_Items.AddBar(var_Items.AddItem("Item 13"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),13,null);
var_Items.AddBar(var_Items.AddItem("Item 14"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),14,null);
int h = exg2antt1.Items.get_FindBar(14,null);
exg2antt1.Items.EnsureVisibleItem(h);
exg2antt1.Chart.ScrollTo(exg2antt1.Items.get_ItemBar(h,14,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarStart),1);
|
943
|
Can I change the color/marker/frame for selected bars

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Appearance var_Appearance = exg2antt1.VisualAppearance;
var_Appearance.Add(2,"c:\\exontrol\\images\\normal.ebn");
var_Appearance.Add(1,"CP:2 3 2 -3 -2");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.SelBarColor32 = 0x1000000;
var_Chart.set_PaneWidth(false,48);
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/6/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/11/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C",null);
var_Items.set_ItemBar(h,"A",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelected,true);
var_Items.set_ItemBar(h,"B",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelected,true);
exg2antt1.EndUpdate();
|
942
|
Can I display a larger marker for selected bars, eventually using the EBN technology

exg2antt1.BeginUpdate();
exg2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.SelBarColor32 = 0x1000000;
var_Chart.set_PaneWidth(false,48);
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/6/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/11/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C",null);
var_Items.set_ItemBar(h,"A",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelected,true);
var_Items.set_ItemBar(h,"B",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelected,true);
exg2antt1.EndUpdate();
|
941
|
How do I change the color for the selected bars

exg2antt1.BeginUpdate();
exg2antt1.Debug = true;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.SelBarColor = Color.FromArgb(255,0,0);
var_Chart.set_PaneWidth(false,48);
exg2antt1.Columns.Add("Task");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/6/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/11/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C",null);
var_Items.set_ItemBar(h,"A",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelected,true);
var_Items.set_ItemBar(h,"B",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelected,true);
exg2antt1.EndUpdate();
|
940
|
How can I change the background color for child bars of a summary bar

exg2antt1.BeginUpdate();
exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot;
exg2antt1.HasLines = exontrol.EXG2ANTTLib.HierarchyLineEnum.exNoLine;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exNoCreateBar;
var_Chart.AllowLinkBars = false;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,112);
exg2antt1.Columns.Add("");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int hR1 = var_Items.AddItem("Team 1");
var_Items.AddBar(hR1,"Summary",Convert.ToDateTime("1/2/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
var_Items.set_ItemBar(hR1,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exSummaryBarBackColor,12895428);
int h1 = var_Items.InsertItem(hR1,null,"Member 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.DefineSummaryBars(hR1,"",h1,"");
h1 = var_Items.InsertItem(hR1,null,"Member 2");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.DefineSummaryBars(hR1,"",h1,"");
h1 = var_Items.InsertItem(hR1,null,"Member 3");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/5/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.DefineSummaryBars(hR1,"",h1,"");
var_Items.set_ExpandItem(hR1,true);
exg2antt1.EndUpdate();
|
939
|
How can I allow resizing the bar only in the right part of the bar
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCanResize,2);
|
938
|
How can I allow resizing the bar only in the left part of the bar
exg2antt1.Columns.Add("Task");
exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Task 1");
var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
var_Items.set_ItemBar(h,"K1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCanResize,1);
|
937
|
How can I show the links that starts from selected bar being more visible, while the rest being transparent

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,64);
var_Chart.set_ShowLinksWidth(exontrol.EXG2ANTTLib.ShowLinksEnum.exShowLinksStartFrom,2);
var_Chart.set_ShowLinksStyle(exontrol.EXG2ANTTLib.ShowLinksEnum.exShowLinksStartFrom,exontrol.EXG2ANTTLib.LinkStyleEnum.exLinkDot);
var_Chart.set_ShowLinksColor(exontrol.EXG2ANTTLib.ShowLinksEnum.exShowLinksEndTo,Color.FromArgb(200,200,200));
var_Chart.set_ShowLinksColor(exontrol.EXG2ANTTLib.ShowLinksEnum.exShowUnselectedLinks,Color.FromArgb(200,200,200));
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
int h2 = var_Items.AddItem("Task 2");
var_Items.AddBar(h2,"Task",Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/27/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ItemBar(h2,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelected,true);
var_Items.AddLink("L1",h1,"",h2,"");
var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"L1");
int h3 = var_Items.AddItem("Task 3");
var_Items.AddBar(h3,"Task",Convert.ToDateTime("9/29/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("10/2/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddLink("L2",h2,"",h3,"");
var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"L2");
exg2antt1.EndUpdate();
|
936
|
How can I show only the links that starts from selected bar

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exResizeChart;
exg2antt1.Columns.Add("Tasks");
(exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column).Visible = false;
(exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column).Visible = false;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,64);
var_Chart.set_ShowLinksColor(exontrol.EXG2ANTTLib.ShowLinksEnum.exShowLinksEndTo,var_Chart.BackColor);
var_Chart.set_ShowLinksColor(exontrol.EXG2ANTTLib.ShowLinksEnum.exShowUnselectedLinks,var_Chart.BackColor);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.set_CellValue(h1,1,Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellValue(h1,2,Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddBar(h1,"Task",var_Items.get_CellValue(h1,1),var_Items.get_CellValue(h1,2),null,null);
int h2 = var_Items.InsertItem(h,null,"Task 2");
var_Items.set_CellValue(h2,1,Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellValue(h2,2,Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddBar(h2,"Task",var_Items.get_CellValue(h2,1),var_Items.get_CellValue(h2,2),null,null);
var_Items.set_ItemBar(h2,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelected,true);
var_Items.AddLink("L1",h1,"",h2,"");
int h3 = var_Items.InsertItem(h,null,"Task 3");
var_Items.set_CellValue(h3,1,Convert.ToDateTime("9/29/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellValue(h3,2,Convert.ToDateTime("10/2/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddBar(h3,"Task",var_Items.get_CellValue(h3,1),var_Items.get_CellValue(h3,2),null,null);
var_Items.AddLink("L2",h2,"",h3,"");
exg2antt1.EndUpdate();
|
935
|
How can I hide links that are not related to selected bar

exg2antt1.BeginUpdate();
exg2antt1.MarkSearchColumn = false;
exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exResizeChart;
exg2antt1.Columns.Add("Tasks");
(exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column).Visible = false;
(exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column).Visible = false;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,64);
var_Chart.set_ShowLinksColor(exontrol.EXG2ANTTLib.ShowLinksEnum.exShowUnselectedLinks,var_Chart.BackColor);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.set_CellValue(h1,1,Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellValue(h1,2,Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddBar(h1,"Task",var_Items.get_CellValue(h1,1),var_Items.get_CellValue(h1,2),null,null);
var_Items.set_ItemBar(h1,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelected,true);
int h2 = var_Items.InsertItem(h,null,"Task 2");
var_Items.set_CellValue(h2,1,Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellValue(h2,2,Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddBar(h2,"Task",var_Items.get_CellValue(h2,1),var_Items.get_CellValue(h2,2),null,null);
var_Items.AddLink("L1",h1,"",h2,"");
int h3 = var_Items.InsertItem(h,null,"Task 3");
var_Items.set_CellValue(h3,1,Convert.ToDateTime("9/29/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellValue(h3,2,Convert.ToDateTime("10/2/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.AddBar(h3,"Task",var_Items.get_CellValue(h3,1),var_Items.get_CellValue(h3,2),null,null);
var_Items.AddLink("L2",h2,"",h3,"");
exg2antt1.EndUpdate();
|
934
|
How can I show the direction of the link using EBN files

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Appearance var_Appearance = exg2antt1.VisualAppearance;
var_Appearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
var_Appearance.Add(2,"CP:1 -1 -1 1 1");
var_Appearance.Add(3,"CP:1 -2 -2 2 2");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,128);
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B1",null);
int h2 = var_Items.AddItem("Task 2");
var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B2",null);
var_Items.AddLink("L1",h1,"B1",h2,"B2");
var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkArrowColor,16777216);
h2 = var_Items.AddItem("Task 3");
var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B3",null);
var_Items.AddLink("L2",h1,"B1",h2,"B3");
var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkArrowColor,33554432);
h2 = var_Items.AddItem("Task 4");
var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B5",null);
var_Items.AddLink("L3",h1,"B1",h2,"B5");
var_Items.set_Link("L3",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkArrowColor,50331648);
exg2antt1.EndUpdate();
|
933
|
How can I show round links

exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B1",null);
var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B2",null);
var_Items.AddLink("L1",var_Items.get_FindItem("Item 1",0,null),"B1",var_Items.get_FindItem("Item 2",0,null),"B2");
var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkShowRound,true);
|
932
|
How can I change the color to display the arrow of the link

exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B1",null);
var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B2",null);
var_Items.AddLink("L1",var_Items.get_FindItem("Item 1",0,null),"B1",var_Items.get_FindItem("Item 2",0,null),"B2");
var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkArrowColor,255);
|
931
|
I use UnitScale: exHour and I want to show only from 9 to 18 hour. The idea is to show only the working part of a day. Is this possible

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.MarkTodayColor = var_Chart.BackColor;
var_Chart.BackColorLevelHeader = Color.FromArgb(255,255,255);
var_Chart.set_PaneWidth(false,0);
var_Chart.LevelCount = 2;
exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
var_Level.Label = "<b><%dddd%></b> <%d%>";
var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
var_Level.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelNoLine;
exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
var_Level1.Label = 65536;
var_Level1.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelMiddleLine | exontrol.EXG2ANTTLib.LevelLineEnum.exLevelDotLine;
var_Level1.DrawTickLinesFrom(0,exontrol.EXG2ANTTLib.LevelLineEnum.exLevelDotLine);
var_Chart.NonworkingHours = 16253439;
var_Chart.ShowNonworkingUnits = false;
var_Chart.ShowNonworkingDates = false;
var_Chart.ShowNonworkingHours = false;
exg2antt1.EndUpdate();
|
930
|
Can I display tick lines from other level to my base level so time units gets separated more clearly

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.DrawLevelSeparator = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelNoLine;
var_Chart.UnitWidth = 24;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,0);
var_Chart.LevelCount = 2;
exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
var_Level.Label = "<%dddd%>";
var_Level.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelLowerHalf | exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
var_Level1.Label = 65536;
var_Level1.Count = 6;
var_Level1.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelMiddleLine | exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
var_Level1.DrawTickLinesFrom(0,exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine);
exg2antt1.EndUpdate();
|
929
|
Is there any property to change the style of the tick lines being shown in the chart

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.UnitWidth = 24;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,0);
var_Chart.LevelCount = 2;
exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
var_Level.Label = "<%dddd%>";
var_Level.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
var_Level1.Label = 65536;
var_Level1.Count = 6;
var_Level1.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelUpperHalf | exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
var_Chart.DrawLevelSeparator = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
exg2antt1.EndUpdate();
|
928
|
Is there any property to change the style of the tick lines being shown in the chart

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,0);
var_Chart.LevelCount = 2;
var_Chart.DrawLevelSeparator = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
var_Level.Label = "<%dddd%>";
var_Level.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
var_Level1.Label = 65536;
var_Level1.Count = 6;
var_Level1.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelSolidLine;
exg2antt1.EndUpdate();
|
927
|
How can I show the levels based on the base level so tick lines aligns better

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.AdjustLevelsToBase = true;
var_Chart.UnitWidth = 24;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.set_PaneWidth(false,0);
var_Chart.LevelCount = 2;
var_Chart.get_Level(0).Label = "<%dddd%>";
exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(1);
var_Level.Label = 65536;
var_Level.Count = 5;
exg2antt1.EndUpdate();
|
926
|
How can I show only working hours in other words only the working part of the day

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.AllowSelectDate = exontrol.EXG2ANTTLib.SelectDateEnum.exNoSelectDate;
var_Chart.MarkTodayColor = var_Chart.BackColor;
var_Chart.set_PaneWidth(false,0);
var_Chart.LevelCount = 2;
exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
var_Level.Label = "<b><%dddd%></b> <%d%>";
var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment;
var_Level.DrawTickLines = exontrol.EXG2ANTTLib.LevelLineEnum.exLevelNoLine;
exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
var_Level1.Label = 65536;
var_Level1.set_ReplaceLabel("09","<fgcolor=FF0000><b><font ;10>9</font></b></fgcolor>");
var_Chart.NonworkingHours = 16253439;
var_Chart.ShowNonworkingUnits = false;
var_Chart.ShowNonworkingDates = false;
var_Chart.ShowNonworkingHours = false;
exg2antt1.EndUpdate();
|
925
|
How can I specify the effort for bars when displaying the overload histogram

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.NonworkingDays = 0;
var_Chart.set_PaneWidth(false,52);
var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 64;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = var_Bar.Pattern;
var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
var_Bar.HistogramItems = -6;
var_Bar.HistogramGridLinesColor = Color.FromArgb(192,192,192);
var_Bar.HistogramRulerLinesColor = Color.FromArgb(0,0,1);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","4");
var_Items.set_ItemBar(h1,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,4);
h1 = var_Items.AddItem("Task 2");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/24/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",3);
var_Items.set_ItemBar(h1,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,3);
h1 = var_Items.AddItem("Task 3");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/29/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",2);
var_Items.set_ItemBar(h1,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,2);
h1 = var_Items.AddItem("Task 4");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/30/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/2/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",1);
exg2antt1.EndUpdate();
|
924
|
How can I display the cumulative histogram and showing the bars that generated it using different colors

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 64;
var_Chart.set_PaneWidth(false,128);
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramNoGrouping | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramLeafItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramUnlockedItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramCheckedItems;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistCumulative;
var_Bar.HistogramCumulativeOriginalColorBars = exontrol.EXG2ANTTLib.HistogramCumulativeOriginalColorBarsEnum.exChangeColor;
var_Bar.HistogramItems = 6;
var_Bar.HistogramRulerLinesColor = Color.FromArgb(128,0,0);
var_Bar.HistogramBorderColor = Color.FromArgb(1,0,0);
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Column") as exontrol.EXG2ANTTLib.Column);
var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
var_Column.PartialCheck = true;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Project 1");
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 3"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 4"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_CellState(var_Items[1],0,1);
var_Items.set_ExpandItem(h,true);
exg2antt1.EndUpdate();
|
923
|
How can I show the cumulative histogram for my bar

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 64;
var_Chart.set_PaneWidth(false,128);
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramNoGrouping | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramLeafItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramUnlockedItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramCheckedItems;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistCumulative;
var_Bar.HistogramItems = 6;
var_Bar.HistogramRulerLinesColor = Color.FromArgb(128,0,0);
var_Bar.HistogramBorderColor = Color.FromArgb(1,0,0);
exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Column") as exontrol.EXG2ANTTLib.Column);
var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
var_Column.PartialCheck = true;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Project 1");
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 3"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 4"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_CellState(var_Items[1],0,1);
var_Items.set_ExpandItem(h,true);
exg2antt1.EndUpdate();
|
922
|
How can I show some grid lines or ruler in the histogram

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 64;
var_Chart.set_PaneWidth(false,78);
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramNoGrouping | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramLeafItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramUnlockedItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramCheckedItems;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
var_Bar.HistogramItems = 6;
var_Bar.HistogramRulerLinesColor = Color.FromArgb(128,0,0);
var_Bar.HistogramGridLinesColor = Color.FromArgb(255,0,0);
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Project 1");
var_Items.set_CellHasCheckBox(h,0,true);
var_Items.set_CellState(h,0,1);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ExpandItem(h,true);
|
921
|
Is there any property to show some grid lines in the histogram

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 64;
var_Chart.set_PaneWidth(false,78);
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramNoGrouping | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramLeafItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramUnlockedItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramCheckedItems;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
var_Bar.HistogramItems = 6;
var_Bar.HistogramGridLinesColor = Color.FromArgb(255,0,0);
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Project 1");
var_Items.set_CellHasCheckBox(h,0,true);
var_Items.set_CellState(h,0,1);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ExpandItem(h,true);
|
920
|
How can I specify a fixed number of bars/items being shown in the histogram

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 64;
var_Chart.set_PaneWidth(false,78);
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramNoGrouping | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramLeafItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramUnlockedItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramCheckedItems;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
var_Bar.HistogramCriticalValue = 3;
var_Bar.HistogramItems = -6;
var_Bar.HistogramRulerLinesColor = Color.FromArgb(1,0,0);
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Project 1");
var_Items.set_CellHasCheckBox(h,0,true);
var_Items.set_CellState(h,0,1);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Project 2");
var_Items.set_CellHasCheckBox(h,0,true);
var_Items.set_CellState(h,0,1);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Project 3");
var_Items.set_CellHasCheckBox(h,0,true);
var_Items.set_CellState(h,0,1);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Project 4");
var_Items.set_CellHasCheckBox(h,0,true);
var_Items.set_CellState(h,0,1);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ExpandItem(h,true);
|
919
|
Is there any option to specify a minimum number of bars/items displayed in the histogram

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 64;
var_Chart.set_PaneWidth(false,78);
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramNoGrouping | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramLeafItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramUnlockedItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramCheckedItems;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
var_Bar.HistogramItems = 6;
var_Bar.HistogramGridLinesColor = Color.FromArgb(1,0,0);
var_Bar.HistogramRulerLinesColor = Color.FromArgb(1,0,0);
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Project 1");
var_Items.set_CellHasCheckBox(h,0,true);
var_Items.set_CellState(h,0,1);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Project 2");
var_Items.set_CellHasCheckBox(h,0,true);
var_Items.set_CellState(h,0,1);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ExpandItem(h,true);
|
918
|
How can I show the histogram without grouping the bars based on their parents

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 32;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramNoGrouping | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramLeafItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramUnlockedItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramCheckedItems;
var_Chart.Bars["Task"].HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Project 1");
var_Items.set_CellHasCheckBox(h,0,true);
var_Items.set_CellState(h,0,1);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Project 2");
var_Items.set_CellHasCheckBox(h,0,true);
var_Items.set_CellState(h,0,1);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ExpandItem(h,true);
|
917
|
How can I show the histogram for checked item and all recursively child items

exg2antt1.BeginUpdate();
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.set_PaneWidth(false,128);
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 128;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramRecLeafItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramLeafItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramUnlockedItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramCheckedItems;
var_Chart.Bars["Task"].HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Project");
var_Items.set_CellHasCheckBox(h,0,true);
var_Items.set_CellState(h,0,1);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ExpandItem(h,true);
h = var_Items.InsertItem(h,null,"SubProject");
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ExpandItem(h,true);
exg2antt1.EndUpdate();
|
916
|
How can I show the histogram for checked item and its child items

exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 32;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramLeafItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramUnlockedItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramCheckedItems;
var_Chart.Bars["Task"].HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Project");
var_Items.set_CellHasCheckBox(h,0,true);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.InsertItem(h,null,"Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ExpandItem(h,true);
|
915
|
How can I show the histogram for all items

exg2antt1.BeginUpdate();
exg2antt1.SingleSel = false;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.LevelCount = 2;
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 32;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
var_Chart.Bars["Task"].HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
exg2antt1.EndUpdate();
|
914
|
How can I prevent selecting a new item when clicking the chart area so my selection is shown in the histogram

exg2antt1.SingleSel = false;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.SelectOnClick = false;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 32;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramSelectedItems;
var_Chart.Bars["Task"].HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_SelectItem(var_Items[0],true);
|
913
|
How can I show bars in the histogram for selected items only

exg2antt1.SingleSel = false;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 32;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramSelectedItems;
var_Chart.Bars["Task"].HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
exg2antt1.Columns.Add("Column");
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_SelectItem(var_Items[0],true);
|
912
|
How can I change the color and size for the curve in the histogram

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.NonworkingDays = 0;
var_Chart.set_PaneWidth(false,64);
var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 68;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = (exontrol.EXG2ANTTLib.PatternEnum)0x100 | exontrol.EXG2ANTTLib.PatternEnum.exPatternDot;
var_Bar.HistogramBorderColor = Color.FromArgb(0,255,0);
var_Bar.HistogramBorderSize = 5;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/25/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1,1);
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),2,2);
exg2antt1.EndUpdate();
|
911
|
How can I change the color for the frame in the histogram

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.NonworkingDays = 0;
var_Chart.set_PaneWidth(false,64);
var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 68;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = (exontrol.EXG2ANTTLib.PatternEnum)0x100 | exontrol.EXG2ANTTLib.PatternEnum.exPatternShadow;
var_Bar.HistogramItems = 5;
var_Bar.HistogramBorderColor = Color.FromArgb(255,0,0);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/25/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1,1);
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),2,2);
exg2antt1.EndUpdate();
|
910
|
How can I force the histogram for a bar being shown all the time

exg2antt1.BeginUpdate();
exg2antt1.ScrollBySingleLine = true;
(exg2antt1.Columns.Add("Tasks") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.NonworkingDays = 0;
var_Chart.set_PaneWidth(false,64);
var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 68;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramUnlockedItems | exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramCheckedItems;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars.Copy("Task","H");
var_Bar.Color = Color.FromArgb(0,255,0);
var_Bar.HistogramPattern = (exontrol.EXG2ANTTLib.PatternEnum)0x100;
var_Bar.HistogramItems = 5;
var_Bar.HistogramColor = var_Bar.Color;
var_Bar.HistogramGridLinesColor = Color.FromArgb(128,128,128);
var_Bar.HistogramRulerLinesColor = Color.FromArgb(0,0,1);
exontrol.EXG2ANTTLib.Bar var_Bar1 = var_Chart.Bars["Task"];
var_Bar1.HistogramCriticalColor = Color.FromArgb(0,0,128);
var_Bar1.HistogramPattern = var_Bar1.Pattern;
var_Bar1.HistogramItems = 5;
var_Bar1.HistogramGridLinesColor = Color.FromArgb(128,128,128);
var_Bar1.HistogramRulerLinesColor = Color.FromArgb(0,0,1);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Hidden");
var_Items.AddBar(h1,"H",Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1,null);
var_Items.AddBar(h1,"H",Convert.ToDateTime("6/24/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),2,null);
var_Items.set_CellState(h1,0,1);
var_Items.set_ItemHeight(h1,0);
var_Items.set_SelectableItem(h1,false);
h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/25/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1,null);
var_Items.set_CellState(h1,0,1);
h1 = var_Items.AddItem("Task 2");
var_Items.set_CellState(h1,0,1);
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/24/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/1/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1,null);
exg2antt1.EndUpdate();
|
909
|
How can I remove a bar type from the histogram

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.NonworkingDays = 0;
var_Chart.set_PaneWidth(false,40);
var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 32;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramCriticalColor = Color.FromArgb(0,0,128);
var_Bar.HistogramPattern = var_Bar.Pattern;
exontrol.EXG2ANTTLib.Bar var_Bar1 = var_Chart.Bars.Copy("Task","Green");
var_Bar1.Color = Color.FromArgb(0,255,0);
var_Bar1.HistogramPattern = var_Bar1.Pattern;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Green",Convert.ToDateTime("6/22/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),0,null);
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/25/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1,null);
var_Items.set_ItemBar(h1,1,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOffset,3);
h1 = var_Items.AddItem("Task 2");
var_Items.AddBar(h1,"Green",Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/30/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),0,null);
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/1/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1,null);
var_Items.set_ItemBar(h1,1,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOffset,3);
exontrol.EXG2ANTTLib.Bar var_Bar2 = exg2antt1.Chart.Bars["Green"];
var_Bar2.HistogramColor = var_Bar2.Color;
var_Bar2.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternEmpty;
exg2antt1.EndUpdate();
|
908
|
How can I show the two buttons in the vertical splitter but still resizes the chart when the control gets resized

exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exSplitterShowButtons | exontrol.EXG2ANTTLib.OnResizeControlEnum.exResizeChart;
exg2antt1.Chart.set_PaneWidth(false,96);
exg2antt1.Chart.LevelCount = 2;
|
907
|
I have seen a screen shot on your web page that shows two buttons on the vertical scroll bar. How can I show them
exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exSplitterShowButtons;
exg2antt1.Chart.set_PaneWidth(false,96);
|
906
|
How can I disable selecting a new item once the user clicks the chart area

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exg2antt1.SingleSel = false;
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.SelectOnClick = false;
var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto;
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,40);
var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 32;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramSelectedItems;
var_Chart.Bars["Task"].HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternSolid;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/22/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),0,null);
var_Items.set_SelectItem(h1,true);
h1 = var_Items.AddItem("Task 2");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/24/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/30/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),0,null);
var_Items.set_SelectItem(h1,true);
exg2antt1.EndUpdate();
|
905
|
Is there any option to display the chart's header in the bottom side of the histogram

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.NonworkingDays = 0;
var_Chart.set_PaneWidth(false,40);
var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
var_Chart.HistogramHeight = 96;
var_Chart.HistogramHeaderVisible = true;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.Color = Color.FromArgb(0,0,255);
var_Bar.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsOffset;
var_Bar.OverlaidGroup = "Task2";
var_Bar.HistogramCriticalColor = Color.FromArgb(0,0,128);
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exBezierCurve;
var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
exontrol.EXG2ANTTLib.Bar var_Bar1 = var_Chart.Bars.Copy("Task","Task2");
var_Bar1.Color = Color.FromArgb(0,255,0);
var_Bar1.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsOffset;
var_Bar1.OverlaidGroup = "Task";
var_Bar1.HistogramCriticalColor = Color.FromArgb(0,128,0);
var_Bar1.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exBezierCurve;
var_Bar1.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task2",Convert.ToDateTime("6/22/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),0,null);
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/25/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1,null);
var_Items.set_ItemBar(h1,0,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,3);
var_Items.set_ItemBar(h1,1,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,4);
h1 = var_Items.AddItem("Task 2");
var_Items.AddBar(h1,"Task2",Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/30/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),0,null);
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/1/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1,null);
var_Items.set_ItemBar(h1,0,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,4);
var_Items.set_ItemBar(h1,1,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,1);
exg2antt1.EndUpdate();
|
904
|
How can I display the child bars as soon as an item gets collapsed

exg2antt1.BeginUpdate();
exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot;
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.ShowCollapsedBars = true;
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,96);
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h = var_Items.AddItem("Project 1");
int h1 = var_Items.InsertItem(h,null,"Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
int h2 = var_Items.InsertItem(h,null,"Task 2");
var_Items.AddBar(h2,"Task",Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
int h3 = var_Items.InsertItem(h,null,"Task 3");
var_Items.AddBar(h3,"Task",Convert.ToDateTime("9/27/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/29/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C",null);
h = var_Items.AddItem("Project 2");
h1 = var_Items.InsertItem(h,null,"Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
h2 = var_Items.InsertItem(h,null,"Task 2");
var_Items.AddBar(h2,"Task",Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
h3 = var_Items.InsertItem(h,null,"Task 3");
var_Items.AddBar(h3,"Task",Convert.ToDateTime("9/27/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/29/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C",null);
var_Items.set_ExpandItem(h,true);
exg2antt1.EndUpdate();
|
903
|
What exBarEffort property represents

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.set_PaneWidth(false,40);
var_Chart.FirstVisibleDate = Convert.ToDateTime("6/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
var_Chart.HistogramHeight = 164;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramPattern = (exontrol.EXG2ANTTLib.PatternEnum)0x100;
var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/11/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,"1/1=<b>100%");
var_Items.set_ItemBar(h1,null,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
h1 = var_Items.AddItem("Task 2");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/12/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,"1/2=<b>50%");
var_Items.set_ItemBar(h1,null,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
h1 = var_Items.AddItem("Task 3");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/15/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/18/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,"1/3=<b>33%");
var_Items.set_ItemBar(h1,null,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
h1 = var_Items.AddItem("Task 4");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/19/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,"1/4=<b>25%");
var_Items.set_ItemBar(h1,null,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
h1 = var_Items.AddItem("Task 5");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/24/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/29/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,"1/5=<b>20%");
var_Items.set_ItemBar(h1,null,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
exg2antt1.EndUpdate();
|
902
|
Can I display multiple curves in the histogram

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.NonworkingDays = 0;
var_Chart.set_PaneWidth(false,40);
var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
var_Chart.HistogramHeight = 64;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.Color = Color.FromArgb(0,0,255);
var_Bar.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsOffset;
var_Bar.OverlaidGroup = "Task2";
var_Bar.HistogramCriticalColor = Color.FromArgb(0,0,128);
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exBezierCurve;
var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
exontrol.EXG2ANTTLib.Bar var_Bar1 = var_Chart.Bars.Copy("Task","Task2");
var_Bar1.Color = Color.FromArgb(0,255,0);
var_Bar1.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsOffset;
var_Bar1.OverlaidGroup = "Task";
var_Bar1.HistogramCriticalColor = Color.FromArgb(0,128,0);
var_Bar1.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exBezierCurve;
var_Bar1.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task2",Convert.ToDateTime("6/22/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),0,null);
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/25/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1,null);
var_Items.set_ItemBar(h1,0,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,3);
var_Items.set_ItemBar(h1,1,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,4);
h1 = var_Items.AddItem("Task 2");
var_Items.AddBar(h1,"Task2",Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/30/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),0,null);
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/1/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),1,null);
var_Items.set_ItemBar(h1,0,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,4);
var_Items.set_ItemBar(h1,1,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,1);
exg2antt1.EndUpdate();
|
901
|
How can I use the exBarEffort property

exg2antt1.BeginUpdate();
exg2antt1.Columns.Add("Tasks");
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart;
var_Chart.LevelCount = 2;
var_Chart.NonworkingDays = 0;
var_Chart.set_PaneWidth(false,40);
var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
var_Chart.HistogramVisible = true;
var_Chart.HistogramHeight = 64;
var_Chart.HistogramView = exontrol.EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
var_Bar.HistogramCriticalColor = Color.FromArgb(255,0,0);
var_Bar.HistogramPattern = exontrol.EXG2ANTTLib.PatternEnum.exBezierCurve;
var_Bar.HistogramType = exontrol.EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items;
int h1 = var_Items.AddItem("Task 1");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/25/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ItemBar(h1,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,4);
h1 = var_Items.AddItem("Task 2");
var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/1/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
var_Items.set_ItemBar(h1,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,1);
exg2antt1.EndUpdate();
|